package com.base.component.ai.system.entity;

import com.base.component.ai.workflow.core.NodeTypeEnum;
import com.base.core.framework.sql.entity.BaseV1Ext;
import com.gitee.magic.core.json.JsonObject;
import com.gitee.magic.jdbc.persistence.annotation.Entity;
import com.gitee.magic.jdbc.persistence.annotation.Table;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.ColumnDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.Indexes;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.TableDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.indexes.Normal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zywei 
 * @date 2025-01-11 11:55:19
 */
@Getter@Setter@ToString
@Entity("flowTrack")
@Table("sys_flow_track")
@TableDef(comment = "flow追踪")
public class FlowTrackDO extends BaseV1Ext {

	private static final long serialVersionUID = 1L;
	
	public FlowTrackDO(){}

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "flow运行")
	private Long flowRunId;

	@ColumnDef(comment = "节点类型")
	private NodeTypeEnum nodeType;
	
    @ColumnDef(comment = "数据")
    private JsonObject data;

    @ColumnDef(comment = "耗时")
	private Long cost;
	
}
